<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>Tuan</title>
    <link href="css/reset.css" rel="stylesheet" type="text/css" />
    <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body style="z-index: 99">
<div class="header">
    <img src="img/111.jpg">
</div>

<div class="main">
    <div class="left haveday">
        <h4 class="main-left col-xs-12">玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂</h4>
        <span id="divdown1" class="main-right col-xs-12 time"></span>
    </div>
    <div class="right">
            <h4><b>66<span> 元</span></b> <span>88元</span></h4>
    </div>
</div>
<div class="menu col-xs-12">
    <div class="m-left col-md-6 col-xs-12">
        <h1><img src="img/support1.png" alt=""/><span>支持隨時退款</span></h1>
    </div>
    <div class="m-right col-md-6 col-xs-12">
        <h1><img src="img/support1.png" alt=""/><span>支持過期自動退</span></h1>
    </div>
    <div class="m-bottom col-xs-12">
        <h1><img src="img/user1.png" alt=""/><span>已售 8888</span></h1>
    </div>
</div>
<div class="content col-xs-12">
    <h1>商品詳情</h1>
    <div class="name">
        <h4>玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂玛莎拉蒂</h4>
    </div>
    <img src="img/111.jpg" alt=""/>
    <div class="about">
    <p>美味美味美味美味</p>
    <p>美味美味美味美味美味美味</p>
    <p>美味美味美味美味美味美味美味美味美味</p>
    </div>
</div>

<div id="gobuy" class="footer">
    <h1>立即搶購</h1>
</div>

<div id="buy" class="buy col-xs-12" style="padding: 0;">
    <div class="buy-head">
        <h1>提交訂單</h1>
        <img id="back" class="back" src="style/img/back1.png" alt=""/>
    </div>
    <div class="buy-name">
        <h2><b><?php echo $product['products_name'] ?></b></h2>
    </div>
    <div class="write col-xs-12">
        <h3 class="wnum col-xs-12">
            <span class="wnuma col-xs-12"><b>数&nbsp;&nbsp;&nbsp;量：</b></span>
                <span class="wnumb col-xs-12">

                    <span class="col-xs-2" style="padding: 0">
                    <!-- <input id="min" class="btn btn-primary" name="number" type="button" value="-"/>  -->
                    <img id="min" src="style/img/min2.png" style="border: 2px solid #bfbfbf; border-radius: 50%;">
                    </span>

                    <span class="col-xs-8" style="padding: 0">
                    <input id="text_box" class="col-xs-12 form-control" name="number" type="text" value="1"/>
                     </span>

                    <span class="col-xs-2" style="padding: 0; text-align: right;">
                    <!-- <input id="add" class="btn btn-primary" name="number" type="button" value="+"/> -->
                    <img id="add" src="style/img/add.png" style="border: 2px solid #FE9807; border-radius: 50%;">
                    </span>

                </span>
        </h3>

        <h3 class="wuser col-xs-12">
            <span class="wusera col-xs-12"><b>用戶名：</b></span>
            <span class="wuserb col-xs-12"><input class="input col-xs-12 form-control" type="text" id="user_name"
                                                  name="user_name" maxlength="20" placeholder="請輸入用戶名" required></span>
        </h3>

        <h3 class="wtel col-xs-12">
            <span class="tela col-xs-12"><b>手機號：</b></span>
            <span class="telb col-xs-12"><input class="input col-xs-12 form-control" type="text" id="phone" name="phone"
                                                maxlength="20" placeholder="請輸入電話" required></span>
        </h3>

        <h3 class="wem col-xs-12">
            <span class="wema col-xs-12"><b>郵&nbsp;&nbsp;&nbsp;箱：</b></span>
            <span class="wemb col-xs-12"><input class="input col-xs-12 form-control" type="text" id="email" name="email"
                                                maxlength="30" placeholder="請輸入郵箱" required></span>
        </h3>

        <div id="city">
            <div>
                <h3 class="col-xs-12">
                    <span class="col-xs-12 wadda" style="padding:0"><b>地&nbsp;&nbsp;&nbsp;址：</b></span>
                    <span class="col-xs-6 waddb"><select class="prov col-xs-12 form-control" id="prov_id"></select></span>
                    <span class="col-xs-6 waddc"><select class="city col-xs-12 form-control" id="city_id" disabled="disabled"></select></span>
                </h3>

                <h3 class="col-xs-12">
                    <span class="col-xs-12 waddd">
                    <input class="input addr col-xs-12 form-control" type="text" id="address" name="address"
                           maxlength="20" placeholder="詳細地址具體到街道門牌號" required>
                    </span>
                </h3>
            </div>
        </div>
    </div>
    <div>
        <span class="col-xs-2"></span>
        <span id="get" class="button get col-xs-8" onclick="doSubmit()">提交</span>
        <span class="col-xs-2"></span>
    </div>
</div>

<div id="buy-done" class="buy-done">
    <img style="padding-bottom: 10px" src="style/img/support.png">
    <br/>
    <span>提交成功</span>
</div>

</body>
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/script.js"></script>
<script src="js/jquery.cityselect.js"></script>
<!--<script>-->
    <!--function lxfEndtime(){-->
        <!--$(".lxftime").each(function(){-->
            <!--var lxfday=$(this).attr("lxfday");//用来判断是否显示天数的变量-->
            <!--var endtime = new Date($(this).attr("endtime")).getTime();-->
            <!--//取结束日期(毫秒值)-->
            <!--var nowtime = new Date().getTime();-->
            <!--//今天的日期(毫秒值)-->
            <!--var youtime = endtime-nowtime;//还有多久(毫秒值)-->
            <!--var seconds = youtime/1000;-->
            <!--var minutes = Math.floor(seconds/60);-->
            <!--var hours = Math.floor(minutes/60);-->
            <!--var days = Math.floor(hours/24);-->
            <!--var CDay= days ;-->
            <!--var CHour= hours % 24;-->
            <!--var CMinute= minutes % 60;-->
            <!--var CSecond= Math.floor(seconds%60);-->
            <!--//"%"是取余运算，可以理解为60进一后取余数，然后只要余数。-->
            <!--if(endtime<=nowtime){-->
                <!--$(this).html("已过期")-->
                <!--//如果结束日期小于当前日期就提示过期啦-->
            <!--}else{-->
                <!--if($(this).attr("lxfday")=="no"){-->
                    <!--$(this).html("<i>剩余时间：</i><span>"+CHour+"</span>时<span>"+CMinute+"</span>分<span>"+CSecond+"</span>秒");-->
                    <!--//输出没有天数的数据-->
                <!--}else{-->
                    <!--$(this).html("<i>仅剩：</i><span>"+days+"</span><em> 天 </em><span>"+CHour+"</span><em> 时 </em><span>"+CMinute+"</span><em> 分 </em><span>"+CSecond+"</span><em> 秒 </em>");-->
                    <!--//输出有天数的数据-->
                <!--}-->
            <!--}-->
        <!--});-->
        <!--setTimeout("lxfEndtime()",1000);-->
    <!--};-->
    <!--$(function(){-->
        <!--lxfEndtime();-->
    <!--});-->
<!--</script>-->

<script language="javascript" type="text/javascript">
    var interval = 1000;
    function ShowCountDown(year,month,day,divname)
    {
        var now = new Date();
        var endDate = new Date(year, month-1, day);
        var leftTime=endDate.getTime()-now.getTime();
        var leftsecond = parseInt(leftTime/1000);
//var day1=parseInt(leftsecond/(24*60*60*6));
        var day1=Math.floor(leftsecond/(60*60*24));
        var hour=Math.floor((leftsecond-day1*24*60*60)/3600);
        var minute=Math.floor((leftsecond-day1*24*60*60-hour*3600)/60);
        var second=Math.floor(leftsecond-day1*24*60*60-hour*3600-minute*60);
        var cc = document.getElementById(divname);
        cc.innerHTML = "僅剩 : "+day1+" 天 "+hour+" 小时 "+minute+" 分 "+second+" 秒 ";
    }
    window.setInterval(function(){ShowCountDown(2016,11,1,'divdown1');}, interval);
</script>

</html>